package com.youlai.system.common.util;

import cn.hutool.crypto.digest.MD5;

/**
 *@Author shen chen
 *@Date 2024-05-07
 */
public class PasswordEncoderUtils {

    private static final String salt = "454534xdf6.";

    public static String encode(String rawPassword) {
        // 加盐加密 md5
        return MD5.create().setSalt(salt.getBytes()).digestHex(rawPassword);
    }
}
